package com.uchedao.seller.module;

import com.google.gson.Gson;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * 买主信息
 * 
 * @author "叶晋"
 * 
 */
public class OwnerInfo implements Cloneable {

	@Expose
	@SerializedName("owner_name")
	public String owner_name;// 买主姓名

	@Expose
	@SerializedName("cert_number")
	public String cert_number;// 买主身份证号

	@Expose
	@SerializedName("owner_contact")
	public String owner_contact;// 买主联系电话

	@Expose
	@SerializedName("trustor_name")
	public String trustor_name;// 委托人

	@Expose
	@SerializedName("trustor_cert_number")
	public String trustor_cert_number;// 委托人身份证号

	@Expose
	@SerializedName("trustor_contact")
	public String trustor_contact;// 委托人联系电话

	@Override
	public OwnerInfo clone() throws CloneNotSupportedException {
		return (OwnerInfo) super.clone();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null || getClass() != obj.getClass()) {
			return false;
		}
		OwnerInfo ownerInfo = getClass().cast(obj);
		return ownerInfo.toString().equals(toString());
	}

	public String toString() {
		return new Gson().toJson(this);
	}
}
